<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Product Information</a></li>
        <li><a href="#tabs-2">guide</a></li>
    </ul>
    <div id="tabs-1">
        <input type="hidden" name="txtID" id="txtID" value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->ProductID|escape:'html'}}{{/if}}"/>
        <table class="w720px">
            <tr>
                <td class="w100 tar red">Product Name</td>
                <td>
                    <div class="pr10">
                        <input id="txtProductName" name="txtProductName" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->ProductName|escape:'html'}}{{/if}}"
                               onblur="getAlias()"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100 tar red">Alias</td>
                <td>
                    <div class="pr10">
                        <input id="txtAlias" name="txtAlias" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Alias|escape:'html'}}{{/if}}"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100 tar red">Product Title</td>
                <td>
                    <div class="pr10">
                        <input id="txtTitle" name="txtTitle" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->ProductTitle|escape:'html'}}{{/if}}"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100 tar red">Product Image</td>
                <td>
                    <div class="pr10 pr">
                        <form name="frmImage">
                        <input id="txtImage" name="txtImage" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Image|escape:'html'}}{{/if}}"
                               />
                        </form>
                        <div class="pa hover50 icon16 chooseimage chooseimage_icon"
                             onclick="mcImageManager.open('frmImage','txtImage');"
                             title="Choose image from my host"
                             >
                        </div>
<!--                        
onclick="BrowseServer( 'Images:/', 'txtImage' );"
onclick="mcImageManager.open('txtTitle','url');"
-->
                </td>
            </tr>
            <tr>
                <td class="w100 tar red">Category</td>
                <td>
                    <div class="pr">
                    <select id="cbxCategory" name="cbxCategory" class="classic-select w100pc">
                        <option value="Unknown">Unknown</option>
                        {{if isset($_SESSION["ADP"][$smarty.const.CCTRL]["productcategory"])}}
                            {{foreach $_SESSION["ADP"][$smarty.const.CCTRL]["productcategory"] as $k=>$v}}
                                <option 
                                    {{if isset($Data["OBJ"])}}{{if $v["Name"]==$Data["OBJ"]->Categorys}}selected=1{{/if}}{{/if}}
                                    value="{{$v["Name"]}}">{{$v["Name"]}}</option>
                            {{/foreach}}
                        {{/if}}
                    </select>
                    <a href="{{base_url('admin-planners/product/category')}}" class="pa hover50 icon16 chooseimage more_icon"
                            title="More type"></a>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100 tar">Supplier</td>
                <td>
                    <div class="pr10">
                        <input id="txtSupplier" name="txtSupplier" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Supplier|escape:'html'}}{{/if}}"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100 tar red">Unit Price</td>
                <td>
                    <table class="m0 p0 w100pc" style="border: none;border-spacing: 0">
                        <tr>
                            <td class="m0 p0">
                                <div class="pr10">
                                    <input id="txtUnitPrice" name="txtUnitPrice" type="number" min="0"  class="classic-input w100pc"
                                           value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->UnitPrice|escape:'html'}}{{/if}}"
                                           />
                                </div>
                            </td>
                            <td class="w100 tar red">Unit On Order</td>
                            <td>
                                <div class="pr10">
                                    <input id="txtUnitOnOrder" name="txtUnitOnOrder" type="number" min="0"  class="classic-input w100pc"
                                           value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->UnitsOnOrder|escape:'html'}}{{/if}}"
                                           />
                                </div>
                            </td>
                            <td class="w100 tar red">Quantity Per Unit</td>
                            <td>
                                <div class="pr10">
                                    <input id="txtQuantity" name="txtQuantity" type="text"  class="classic-input w100pc"
                                           value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->QuantityPerUnit|escape:'html'}}{{/if}}"
                                           />
                                </div>
                            </td>
                        </tr>
                    </table>

                </td>
            </tr>
            <tr>
                <td class="w100 tar vtat"><label class="lh24">Tag</label></td>
                <td>
                    <div class="pr10">
                        <textarea id="txtTag" name="txtTag" style="resize: vertical;" class="classic-input w100pc">{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Tag|escape:'html'}}{{/if}}</textarea>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="tabs-2">
        <p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
        <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
    </div>
</div>
<div class="pt8">
    <button class="gray-button" onclick="FlexiGrid.CancelEdit();"><span>Back</span></button>
    <button class="green-button" onclick="FlexiGrid.Save();"><span>Save</span></button>
</div>
<script>
    $(function() {
        $( "#tabs" ).tabs();
    });
</script>